package test;

import com.ebook.eboo.EbooApplication;
import com.ebook.eboo.Service.userService;
import com.ebook.eboo.pojo.User;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = EbooApplication.class,webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class test {
    @Autowired
    userService userService;
    @Test
    public void test(){
        List<User> userList = userService.getAll();
        System.out.println(userList.subList(1,3));
    }
}
